<?php

namespace IDock\Insurance\TPIC;

class TPICEnums
{

    public static $TCI = '0320';//交强险

    public static $VCI = '0356';//商业险

    /**
     * 营业性质
     * @var array $useNatureCode
     */
    public static $useNatureCode = [
        '01' => '02',//非营运
        '02' => '01',//营运
    ];

    /**
     * 所属性质
     * @var array $attachNature
     */
    public static $attachNature = [
        '01' => '01',//个人
        '02' => '02',//机关/团体
        '03' => '03'//企业
    ];

    /**
     * 车辆用途
     * @var array $causeType
     */
    public static $causeType = [
        '001' => '01',//家庭自用
        '002' => '02',//机关自用
        '003' => '03',//企业自用
        '004' => '04',//出租客车
        '005' => '05',//出租客运
        '006' => '06',//城市公交
        '007' => '07',//公路客运
        '008' => '08',//营业货运
        '009' => '09',//特殊用途
    ];

    /**
     * 车辆种类
     * @var array $carKindCode
     */
    public static $carKindCode = [
        '100' => '100',//客车
        '200' => '200',//货车
        '210' => '210',//低速载货汽车
        '320' => '320',//挂车
        '500' => '',
        '600' => ''
    ];

    /**
     * 燃料(能源)类型
     * @var array
     */
    public static $modelEnergyType = [
        'E01' => '0',
        'E02' => '1',
        'E03' => '2',
        'E04' => '3',
        'E05' => '4',
        'E00' => '9',
    ];

    /**
     * 能源类型
     * @var string[] $energyType
     */
    public static $energyType = [
        'E00' => '9',
        'E10' => '',
        'E01' => '0',
        'E02' => '1',
        'E03' => '2',
        'E04' => '3',
        'E05' => '4',
        'E11' => '',
        'E12' => '',
        'E13' => '',
        'E14' => '',
        'E15' => '',
        'E16' => '',
        'E17' => '',
        'E18' => '',
        'E19' => '',
        'E20' => '',
        'E21' => '',
        'E22' => '',
        'E23' => '',
        'E24' => ''
    ];

    /**
     * 进口车标识
     * @var array $importFlag
     */
    public static $importFlag = [
        '0' => 'I0',
        'LO' => 'I1',
        'JV' => 'I2',
        'IP' => 'I3'
    ];

    /**
     * 关系人证件类型
     * @var array $certificateTypeCode
     */
    public static $certificateTypeCode = [
        '01' => '01',//身份证
        '02' => '',
        '03' => '02',//护照
        '04' => '09',//外国人永久居留身份证
        '05' => '01',//驾驶证
        '50' => '',//组织机构代码
        '51' => '',//个体经营者营业执照
        '52' => '4',//社会统一信用码
        '99' => '',//其他
    ];

    /**
     * 险种代码
     * @var array $coverageCode
     */
    public static $coverageCode = [
        'C01001' => 'BZ',//交强险

        'C02001' => '0301200', //机动车损失保险
        'C02002' => '0301210', //附加车身划痕损失险
        'C02003' => '0301230', //附加修理期间费用补偿险
        'C02004' => '0301232', //附加车轮单独损失险
        'C02005' => '0301202', //附加发动机进水损坏除外特约
        'C02006' => '0301007', //附加绝对免赔率特约条款(车损)
        'C02007' => '', //附加新增加设备损失险
        'C02008' => '', //附加车上货物责任险
        'C02009' => '', //附加保险人指定修理厂特约险

        'C03001' => '0301600', //机动车第三者责任保险
        'C03002' => '0301604', //附加法定节假日限额翻倍险
        'C03003' => '0301610', //附加精神损害抚慰金责任险(三者)
        'C03004' => '0301002', //附加医保外医疗费用责任险(三者)
        'C03005' => '0301008', //附加绝对免赔率特约条款(三者)

        'C04001' => '0301701', //机动车车上人员责任保险(司机)
        'C04002' => '0301611', //附加精神损害抚慰金责任险(司机)
        'C04003' => '0301011', //附加医保外医疗费用责任险(司机)
        'C04004' => '0301009', //附加绝对免赔率特约条款(司机)

        'C05001' => '0301702', //机动车车上人员责任保险(乘客)
        'C05002' => '0301612', //附加精神损害抚慰金责任险(乘客)
        'C05003' => '0301012', //附加医保外医疗费用责任险(乘客)'
        'C05004' => '0301010', //附加绝对免赔率特约条款(乘客)

        'C08001' => '0301003', //道路救援服务特约条款
        'C08002' => '0301004', //车辆安全检测特约条款
        'C08003' => '0301005', //代为驾驶服务特约条款
        'C08004' => '0301006', //代为送检服务特约条款

        //新能源商业险
        'C12001' => '0401200',//新能源汽车损失保险
        'C12002' => '0301210',//附加车身划痕损失险(新能源汽车)
        'C12003' => '0301230',//附加修理期间费用补偿险(新能源汽车)
        'C12004' => '0301232',//附加车轮单独损失险(新能源汽车)
        'C12006' => '0301007',//附加绝对免赔率特约条款(车损)((新能源汽车))
        'C12007' => '',//附加新增加设备损失险(新能源汽车)
        'C12008' => '',//附加车上货物责任险(新能源汽车)

        'C13001' => '0401600',//新能源汽车第三者责任保险
        'C13002' => '0301604',//附加法定节假日限额翻倍险(新能源汽车)
        'C13003' => '0301610',//附加精神损害抚慰金责任险(三者)(新能源汽车)
        'C13004' => '0301002',//附加医保外医疗费用责任险(三者)(新能源汽车)
        'C13005' => '0301008',//附加绝对免赔率特约条款(三者)(新能源汽车)

        'C14001' => '0401701',//新能源汽车车上人员责任保险(司机)
        'C14002' => '0301611',//附加精神损害抚慰金责任险(司机)(新能源汽车)
        'C14003' => '0301011',//附加医保外医疗费用责任险(司机)(新能源汽车)
        'C14004' => '0301009',//附加绝对免赔率特约条款(司机)(新能源汽车)

        'C15001' => '0401702',//新能源汽车车上人员责任保险(乘客)
        'C15002' => '0301612',//附加精神损害抚慰金责任险(乘客)(新能源汽车)
        'C15003' => '0301012',//附加医保外医疗费用责任险(乘客)(新能源汽车)
        'C15004' => '0301010',//附加绝对免赔率特约条款(乘客)(新能源汽车)

        'C16001' => '0401201',//附加外部电网故障损失险
        'C16002' => '0401203',//附加自用充电桩损失保险
        'C16003' => '0401204',//附加自用充电桩责任保险
        'C16004' => '',
        'C16005' => '',

        'C18001' => '0401003', //道路救援服务特约条款
        'C18002' => '0401004', //车辆安全检测特约条款
        'C18003' => '0401005', //代为驾驶服务特约条款
        'C18004' => '0401006', //代为送检服务特约条款
    ];

    public static $coverageName = [
        "BZ" => "动车交通事故责任强制险",
        "001" => "辆损失险",
        "0011" => "加车身划痕损失险",
        "0012" => "附加修理期间费用补偿险",
        "0013" => "附加新增加设备损失险",
        "0014" => "附加车轮单独损失险",
        "0016" => "附加发动机进水损坏除外特约条款",
        "0017" => "附加起重、装卸、挖掘车辆损失扩展条款",
        "0018" => "附加特种车辆固定设备、仪器损坏扩展条款",
        "002" => "第三者责任险",
        "0021" => "附加车上货物 责任险",
        "0022" => "附加法定节假日限额翻倍险",
        "003" => "全车盗抢险",
        "0031" => "附加绝对免赔率特约条款（全车盗抢保险）",
        "0041" => "车上人员责任险(司机)",
        "0044" => "车上人员责任险(乘客)",
        "0045" => "道路救援服务特约条款",
        "0049" => "附加精神损害抚慰金责任险",
        "0050" => "附加医保外用药责任险",
        "0051" => "附加绝对免赔率特约险（损失保险）",
        "0052" => "附加绝对免赔率特约险（第三者责任保险）",
        "0053" => "附加绝对免赔率特约险（车上人员责任保险（司机））",
        "0054" => "附加绝对免赔率特约险（车上人员责任保险（乘客））",
        "0055" => "附加精神损害抚慰金责任险（车上人员责任保险（司机））",
        "0056" => "附加医保外医疗费用责任险（车上人员责任保险（司机））",
        "0057" => "附加精神损害抚慰金责任险（车上人员责任保险（乘客））",
        "0058" => "附加医保外医疗费用责任险（车上人员责任保险（乘客））",
        "1121003" => "驾乘人员意外身故保险责任"
    ];


    /**
     * 号牌种类代码
     * @var array $licenseTypeCode
     */
    public static $licenseTypeCode = [
        '01' => '01',//大型汽车
        '02' => '02',//小型汽车
        '03' => '03',//使馆汽车
        '04' => '04',//领馆汽车
        '05' => '05',//境外汽车
        '06' => '06',//外籍汽车
        '07' => '07',//两、三轮摩托车
        '08' => '08',//轻便摩托车
        '09' => '09',//使馆摩托车
        '10' => '10',//领馆摩托车
        '11' => '11',//境外摩托车
        '12' => '12',//外籍摩托车
        '13' => '13',//农用运输车
        '14' => '14',//拖拉机
        '15' => '15',//挂车
        '16' => '16',//教练汽车
        '17' => '17',//教练摩托车
        '18' => '18',//试验汽车
        '19' => '19',//试验摩托车
        '20' => '20',//临时入境汽车
        '21' => '21',//临时入境摩托车
        '22' => '22',//临时行驶车
        '31' => '31',//公安警用汽车
        '32' => '32',//公安民用汽车
        '33' => '33',//公安警用摩托车
        '36' => '36',//武警号牌
        '37' => '37',//军队号牌
        '51' => '',
        '52' => '',
        '99' => '其他',
    ];

    /**
     * 车损险绝对免赔额
     * @var string[] $deductionLimit
     */
    public static $deductionLimit = [
        '0' => '375001',
        '300' => '375002',
        '500' => '375003',
        '1000' => '375004',
        '2000' => '375005',
    ];

    /**
     * 车身划痕险限额
     * @var string[] $deductionLimit
     */
    public static $scratchLimit = [
        '2000' => 'N03001001',
        '5000' => 'N03001002',
        '10000' => 'N03001003',
        '20000' => 'N03001004',
    ];

    /**
     * 客户分类
     * @var string[] $relationTypeCode
     */
    public static $relationTypeCode = [
        'R1' => '1',
        'R2' => '2',
        'R3' => '2'
    ];

    /**
     * 缴税类型
     * @var string[] $taxTypeCode
     */
    public static $taxTypeCode = [
        'T01' => '02',//正常缴税
        'T02' => '03',//完税
        'T03' => '05',//免税
        'T04' => '04',//减税
        'T05' => '01',//不缴
        'T06' => '',
        'T07' => '',
        'T08' => '',
    ];

    /**
     * 减免税原因代码
     * @var array $taxReductionReasonCode
     */
    public static $taxReductionReasonCode = [
        'TRR1' => '3T2007', //具备减免税证明
        'TRR2' => '3T2001', //拖拉机
        'TRR3' => '3T2002', //军队、武警专用车
        'TRR4' => '3T2003', //警车
        'TRR5' => '3T2012', //外国使领馆、国际组织及其人员
        'TRR6' => '3T2006', //其他
        'TRR7' => '3T2008', //能源减免
    ];

    /**
     * 减免税方案代码
     * @var array $taxReductionCode
     */
    public static $taxReductionCode = [
        'E' => 'E', //'免税',
        'P' => 'P', //'比例减免',
        'A' => '', //'金额减免'
        '' => '',
    ];

    public static $underStats = [
        'U1' => '核保通过',//underwriteSuccess
        'U2' => '退回修改',//underwriteFailure
        'U3' => '人工核保',//manualUnderwrite
        'U4' => '核保失败',//underwriteFailure
        'U5' => '已出保单',//acceptance
        'U6' => '拒保',//underwriteFailure
    ];

    /**
     * 上传证件类型
     * @var array
     */
    public static $uploadImageType = [
        '10001' => 'I030201',//投保人身份证正面照
        '10002' => 'I030202',//投保人身份证反面照
        '10003' => 'I030207',//投保人组织机构代码证照

        '10004' => 'I030301',//被保人身份证正面照
        '10005' => 'I030302',//被保人身份证反面照
        '10006' => 'I030307',//被保人组织机构代码证照

        '10007' => 'I030101',//车主身份证正面照
        '10008' => 'I030102',//车主身份证反面照
        '10009' => 'I030107',//车主组织机构代码证照

        '10010' => 'I020101',//行驶证正页照
        '10011' => 'I020102',//行驶证副页照

        '10012' => 'I021001',//驾驶证正页照
        '10013' => 'I021002',//驾驶证副页照

        '10014' => 'I0601',//车辆正面照片
        '10015' => 'I0601',//车辆正后照片

        '10100' => 'I0601',//'验车照片3',
        '10101' => 'I0601',//'验车照片4',
        '10102' => 'I0601',//'验车照片5',
        '10103' => 'I0601',//'验车照片6',
        '10104' => 'I0601',//'验车照片7',
        '10105' => 'I0601',//'验车照片8',
        '10106' => 'I0601',//'验车照片9',
        '10107' => 'I0601',//'验车照片10',

        '10016' => 'I0202',//合格证
        '10017' => 'I0208',//完税证明
        '10018' => 'I020103',//车辆登记证书
        '10019' => 'I0404',//上年商业险保单照
        '10020' => 'I0404',//上年交强险保单照
        '10021' => 'I020301',//新车发票照

        '90004' => 'I0903',//'关系证明',
        '90009' => 'I0601',//'其他',
    ];

    public static $uploadImageTypeName = [
        '01' => [
            '01' => '投保单',
            '02' => '购车发票',
            '03' => '合格证',
            '04' => '行驶证',
            '05' => '证件',
            '06' => '驾驶证',
            '07' => '验车照片',
            '08' => '已完税/减免税凭证',
            '09' => '新增设备发票与清单',
            '10' => '其他资料',
        ],
        '02' => [
            '01' => '投保单',
            '02' => '行驶证或机动车登记证书',
            '03' => '证件',
            '04' => '二手车购车合同或发票',
            '05' => '驾驶证',
            '06' => '验车照片',
            '07' => '已完税/减免税凭证',
            '08' => '新增设备发票与清单',
            '09' => '其他资料',
        ],
    ];


    /**
     * 充电桩种类
     * @var string[] $chargePileKind
     */
    public static $chargingPileKind = [
        'PK1' => '1',
        'PK2' => '2',
        'PK9' => '9'
    ];

    /**
     * 充电桩安装地点类型
     * @var string[] $chargingPileAddressType
     */
    public static $chargingPileAddressType = [
        'PA1' => '1',
        'PA2' => '2'
    ];

    /**
     * 充电桩使用年限
     * @var array $chargingPileYearLimit
     */
    public static $chargingPileYearLimit = [
        'PY1' => '1',
        'PY2' => '2',
        'PY3' => '3'
    ];

    /**
     * 车辆种类
     * @var array
     */
    public static $carType = [
        '01' => '365001',//6座以下
        '02' => '365002',//6-10座
        '03' => '365003',//10-20座
        '04' => '365004',//20-36座
        '05' => '365005',//36座以上
        '06' => '365006',//2吨以下
        '07' => '365007',//2-5吨
        '08' => '365008',//5-10吨
        '09' => '365009',//10吨以上
    ];


    /**
     * 验车情况
     * @var string[] $carCheckCode
     */
    public static $carCheckCode = [
        'CS1' => '',
        'CS2' => '305005003',//免验
        'CS3' => '305005002',//已验
        'CS4' => ''
    ];

    /**
     * 免验原因
     * @var array $carCheckReasonKind
     */
    public static $carCheckReasonKind = [
        'CR1' => '383001',
        'CR2' => '383003',
        'CR3' => '383002',
        'CR4' => '383005',
        'CR5' => '383005',
        'CR6' => '383005',
        'CR7' => '383005',
        'CR8' => '383005',
        'CR9' => '383005',
        'CR10' => '383005',
    ];


}
